# -*- coding: utf-8 -*-
# @Time    : 2021/11/11 20:58
# @Author  : super


def res(flag):
	def login(func):
		def inner():
			if flag == "login":
				print("先登录一下！")
			else:
				print("先注册一下")
			func()
		return inner
	return login

@res("login1")
def student():
	print("这是一个学生类~")

student()